package com.kanq.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.kanq.pojo.entity.KanqAiHistory;
import com.kanq.pojo.response.HistoryConversation;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author wangchong
 * @description 针对表【kanq_ai_history】的数据库操作Mapper
 * @createDate 2025-06-04 14:16:21
 * @Entity com.kanq.pojo.entity.KanqAiHistory
 */
public interface KanqAiHistoryMapper extends BaseMapper<KanqAiHistory> {

    IPage<KanqAiHistory> selectAllPage(Page<KanqAiHistory> objectPage, @Param("userId") String userId);

    List<HistoryConversation> getHistoryConversationData(String userId, String conversationId);
}




